
* Generate Tables

esttab, star(* 0.05 ** 0.01) se  mtitle nodepvar  /*
*/ 		order(med2 med2_t) noobs  scalar("N_sub Cases" "N_fail Failures") /*
*/ 		varlabels(med2 "Mediation"/*
*/ 		med2_t "Mediation * time"/*
*/ 		prevcris2 "Previous crises"/*
*/ 		viol2 "Violence level"/*
*/ 		crisdur2 "Crisis duration"/*
*/ 		jointdem "Democratic dyad"/*
*/ 		victory2 "Victory"/*
*/ 		contig2 "Contiguity"/*
*/ 		prevcris2_t "Previous crises * time"/*
*/ 		viol2_t "Violence level * time"/*
*/ 		crisdur2_t "Crisis duration * time"/*
*/ 		jointdem_t "Democratic dyad * time"/*
*/ 		victory2_t "Victory * time"/*
*/ 		contig2_t "Contiguity * time"/*
*/		_cons Constant)
esttab using _table1.tex, star(* 0.05 ** 0.01) se label  /*
*/ 		replace noobs scalar("N_sub Cases" "N_fail Failures") /*
*/ 		order(med2 med2_t ) /*
*/ 		varlabels(med2 "Mediation"/*
*/ 		med2_t "Mediation $\times$ time"/*
*/ 		prevcris2 "Previous crises"/*
*/ 		viol2 "Violence level"/*
*/ 		crisdur2 "Crisis duration"/*
*/ 		jointdem "Democratic dyad"/*
*/ 		victory2 "Victory"/*
*/ 		contig2 "Contiguity"/*
*/ 		prevcris2_t "Previous crises $\times$ time"/*
*/ 		viol2_t "Violence level $\times$ time"/*
*/ 		crisdur2_t "Crisis duration $\times$ time"/*
*/ 		jointdem_t "Democratic dyad $\times$ time"/*
*/ 		victory2_t "Victory $\times$ time"/*
*/ 		contig2_t "Contiguity $\times$ time"/*
*/		_cons Constant)  /*
*/ 		b(%9.3g) nodepvar mtitle nonotes booktabs /*
*/ 		addnotes("cluster robust standard errors in parentheses, * p \textless 0.05, ** p \textless 0.01") 

